(function(owner) {

	owner.dealTime = function(jsonData) {
        if(typeof jsonData !=[] )
        return;
		let resultArrData = [];
        let lastItem = {}
		jsonData.map(function(item,index){
            if(index%2 === 0){
                lastItem = item;
                return;
            }else{
           lastItem.offCheckTime = item.userCheckTime;
           lastItem.timeResultOnDuty =item.timeResult;
             resultArrData.push(lastItem);
            }

        });
      
		return resultArrData;
	};

}(window.dealData= {}));
module.exports = window.dealData.dealTime;